package com.example.android.BluetoothChat;

import java.text.ParseException;
import java.text.SimpleDateFormat;

public class Power {
	int id;
	String power;
	String createtime;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getDatatime() {
		return createtime;
	}

	SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

	public void setDatatime(String datatime) {
		try {
			this.createtime = sdf.parse(datatime).toString();
		} catch (ParseException e) {
			e.printStackTrace();
		}
	}

	public String getPower() {
		return power;
	}

	public void setPower(String power) {
		this.power = power;
	}

}
